package hzjbbis.commons.maintenance.action;

import hzjbbis.commons.maintenance.dao.SingleTableDao;
import hzjbbis.commons.maintenance.handler.TempletStandard;
import hzjbbis.commons.maintenance.handler.request.IRequestHandler;
import hzjbbis.commons.maintenance.handler.request.QueryRequestHandler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/**
 * @version 	1.0
 * @author
 */
public class DeleteNodeAction extends Action {


	public ActionForward execute(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request,
		HttpServletResponse response)
		throws Exception {
		
		IRequestHandler requestHandler = new QueryRequestHandler(request, TempletStandard.DELETE_NODE_KEY_HANDLER);

		SingleTableDao.executeHandler(requestHandler);
		
		return mapping.findForward("submitSuccess");
	}

}
